import request from '../request-axios.js';
import { API_CONFIG } from '../config.js';

// 视频采集API
export const videoSaveAPI = {
  // 开始视频采集
  startVideoSave: (data) => {
    return request.post(API_CONFIG.ENDPOINTS.VIDEO_SAVE_START, null, { params: data });
  },

  // 停止视频采集
  stopVideoSave: (data) => {
    return request.post(API_CONFIG.ENDPOINTS.VIDEO_SAVE_STOP, null, { params: data });
  },

  // 取消保存
  deleteData: (data) => {
    return request.get(API_CONFIG.ENDPOINTS.VIDEO_DELETE_DATA, null, { params: data });
  }
};

export default videoSaveAPI; 